﻿using UnityEngine;

public class GameHUD : MonoBehaviour
{
    public GUISkin Skin;

    public void OnGUI()
    {
        GUI.skin = Skin;

        GUILayout.BeginArea(new Rect(0, 0, Screen.width, Screen.height));
        {
            GUILayout.BeginVertical(Skin.GetStyle("GameHUD"));
            {
                GUILayout.Label(string.Format("Points: {0}", GameManager.Instance.Points), Skin.GetStyle("PointsText"));

                GUILayout.Label(string.Format("Asteroids Remaining: {0}", LevelManager.Instance.AsteroidsRemaining), Skin.GetStyle("AsteroidsText"));
                //var time = LevelManager.Instance.RunningTime;
                
            }
            GUILayout.EndVertical();
        }
        GUILayout.EndArea();
    }
}

